package com.example.redis.IO;

import io.minio.MinioClient;
import io.minio.errors.*;
import org.xmlpull.v1.XmlPullParserException;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

public class UploadFile {
    public static void main(String[] args) throws InvalidPortException, InvalidEndpointException, IOException, InvalidKeyException, NoSuchAlgorithmException, InsufficientDataException, InvalidArgumentException, InternalException, NoResponseException, InvalidBucketNameException, XmlPullParserException, ErrorResponseException {
        MinioClient minioClient=new MinioClient("http://127.0.0.1:9000","minioadmin","minioadmin");
        minioClient.putObject("upload","htmlayout.dll",new FileInputStream(new File("D://htmlayout.dll")),"application/octet-stream");
    }
}
